
// pages/dataevent/dateevent.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    item: {
      index: 0,
      msg: 'this is a template',
      time: '2016-09-15'
    },
    flag:true,
    title:'hello',
    message:"NBA",
    hobbys:['吃饭','睡觉'],
    users:[
      {id:1,username:'佩奇'},
      {id:2,username:'乔治'},
      {id:3,username:'苏溪'},
    ]
  },
  setTitle:function(event){
    this.setData({
      title:'world'
    })
  },
  sonHandler(event){
    console.log('son')
    // console.log(event.target)
    // console.log(event.currentTarget)
  },
  parentHandler(event){
    console.log('parent')
    // console.log(event.target.dataset.a)
    // console.log(event.currentTarget)
  }
})